package org.sample.pattern.singleton;

public class SingletonInnerClass {

    private SingletonInnerClass() {
        System.out.println("initial");
    }

    private static class SingetonInnerClassHolder {
        static final SingletonInnerClass INSTANCE = new SingletonInnerClass();
    }

    public static SingletonInnerClass getInstance() {
        return SingetonInnerClassHolder.INSTANCE;
    }

}